/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pt.iasd.youthshelter.datamodel.service;

import java.util.List;
import pt.iasd.youthshelter.datacore.controller.exceptions.IllegalOrphanException;
import pt.iasd.youthshelter.datacore.controller.exceptions.NonexistentEntityException;
import pt.iasd.youthshelter.datamodel.Church;

/**
 *
 * @author Rui
 */
public interface ChurchController {

    void create(Church church);

    void destroy(Integer id) throws IllegalOrphanException, NonexistentEntityException;

    void edit(Church church) throws IllegalOrphanException, NonexistentEntityException, Exception;

    Church findChurch(Integer id);

    List<Church> findChurchEntities();

    List<Church> findChurchEntities(int maxResults, int firstResult);

    int getChurchCount();
    
}
